#ifndef FACECHANGE_H
#define FACECHANGE_H

#include "person.h"
#include <QWidget>
#include "QNetworkRequest"
#include "QNetworkReply"

namespace Ui {
class faceChange;
}

class faceChange : public QWidget
{
    Q_OBJECT

public:
    explicit faceChange(QWidget *parent = nullptr, Person * m_user = nullptr);
    ~faceChange();
    void basicSettings(); //基础设置
    void connectSettings(); //连接设置

private:
    Ui::faceChange *ui;

    Person * face_user = nullptr; //用户信息指针
    QString imgPath101;
    QString imgPath102;

    QString imgPath201;
    QString videoPath202;
    QString imgPath202;

    QString videoPath301;
    QString imgPath301;
    QString videoPath302;
    QString imgPath302;

    QString resultPath1;
    QString resultPath2;
    QString resultPath3;

public slots:
    void btnPixmap101_clicked();
    void btnPixmap102_clicked();
    void btnPixmap201_clicked();
    void btnPixmap202_clicked();
    void btnPixmap301_clicked();
    void btnPixmap302_clicked();
    void btnResult1_clicked();
    void btnResult2_clicked();
    void btnResult3_clicked();
    void dealMsg(QNetworkReply *reply);
    void dealMsg1(QNetworkReply *reply);
    void dealMsg2(QNetworkReply *reply);
    void dealMsg3(QNetworkReply *reply);
    void dealMsg4(QNetworkReply *reply);

signals:
    void showWait();
    void closeWait();
};

#endif // FACECHANGE_H
